import pandas as pd

qualityFile = "checkv.virus.summary.xls"
qualityDf = pd.read_csv(qualityFile, sep="\t")
checkvListDf = qualityDf.query('checkv_quality=="Complete"')["vOTU"]
checkvRegionFile = "checkv_region.xls"
checkvListDf.to_csv(checkvRegionFile, sep="\t", header=False, index=False)
